//
//  Header.h
//  IconMaster
//
//  Created by mac on 2017/7/25.
//  Copyright © 2017年 yangweiwei. All rights reserved.
//

#ifndef Header_h
#define Header_h
#define KWidth [[UIScreen mainScreen]bounds].size.width
#define KHeight [[UIScreen mainScreen]bounds].size.height
#define TouchUPInside UIControlEventTouchUpInside
#define Normal UIControlStateNormal
#define IsNilString(__String) (__String==nil || [__String isEqualToString:@""]|| [__String isEqualToString:@"null"])
#define IsNullString(__String) ([[NSString stringWithFormat:@"%@", __String] isEqualToString:@"<null>"])
#define MFont(font)   [UIFont systemFontOfSize:(font)]
#define Color(r, g, b)  [UIColor colorWithRed:(r)/255.0 green:(g)/255.0 blue:(b)/255.0 alpha:1.0]
#define IntToString(num) [NSString stringWithFormat:@"%ld",num]
#define ScreenRatio_Heght KHeight/736
#define ImageNamed(str) [UIImage imageNamed:str]


#define DataWithZHOrEn(a,b) [NSLocalizedString(@"ZH_EN", "") isEqualToString:@"zh"]? a:b 
//http://192.168.31.142:8081
//#define BaseURL @"http://192.168.31.142:8081"
//#define BaseURLImage @"http://192.168.31.142:8081/"

#define BaseURL @"http://www.hulalakj.com:8081"
#define BaseURLImage @"http://www.hulalakj.com:8081/"


#define BaseURLImageTotal(str) [NSURL URLWithString:[NSString stringWithFormat:@"%@%@", BaseURLImage,str]]
#define ButtonImage(button,str) [button setImage:[UIImage imageNamed:str] forState:Normal] 


#endif /* Header_h */
